package com.ye.pojo;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class SysUser implements java.io.Serializable{
    /*字段*/
    private Integer id;
    private String         account;
    private String realName;
    private String         password;
    private Integer sex;
    private Date birthday;
    private String phone;
    private String         address;
    private String idPicPath;
    private String         workPicPath;
    private Integer roleId;
    private Integer         createdUserId;
    private Date createdTime;
    private Integer         updatedUserId;
    private Date updatedTime;


    // 使用resultMap框架的结果映射
    // Demo11
    private String userRoleName;   //用户角色名称


    // 使用嵌套结果映射association
    // Demo14
    private SysRole sysRole;   //系统角色实体类

    // 使用嵌套结果映射collection
    // Demo18
    private List<Address> addressList;   //用户地址列表




}
